package com.example.zzk;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import org.webrtc.SurfaceViewRenderer;

public class RoomActivity extends BaseActivity implements View.OnClickListener{
    /**
     * 成员
     */
    private TextView member;
    /**
     * 关闭直播
     */
    private TextView close;

    private SurfaceViewRenderer sr;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_room);
        initView();
    }

    private void initView() {
        member = (TextView) findViewById(R.id.member);
        member.setOnClickListener( this);
        close = (TextView) findViewById(R.id.close);
        close.setOnClickListener( this);
        sr = findViewById(R.id.sr);
        sr.setOnClickListener(this);


    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.member:
                startActivity(new Intent(RoomActivity.this,MentActivity.class));
                break;
            case R.id.close:
                finish();
                break;
        }

    }
}